package com.five.api.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.five.entity.Comment;
import com.five.qo.ArticleCommentQO;

import java.util.List;

import java.util.List;

/**
 * <p>
 * 博客评论表 Mapper 接口
 * </p>
 *
 * @author star
 * @since 2021-06-16
 */
public interface CommentMapper extends BaseMapper<Comment> {

    /**
     * 根据用户id 查询收藏的文章
     * @param userId
     * @return 收藏文章列表
     */
    List<ArticleCommentQO> selectCommentByUserId(Long userId);
    List<Comment> getCommentsByArticleIdWithPage(Long articleId, Page page);

}
